package com.feicheng.iou.pojo.login;

import com.feicheng.iou.entity.Role;
import com.feicheng.iou.entity.RolePermission;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.List;
/**
 *
 *   <p>
 *    封装新增或者修改时角色及其权限信息
 *   </p>
 *
 * @author wuweinan
 * @since 2021-7-28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
public class RolePermissionPOJO {
    private Role role;  //角色
    private List<RolePermission> rolePermissionList; //角色权限集合
}
